'use strict';

const Controller = require('egg').Controller;

class ResController extends Controller {
    async list() {
        //获取菜单
        let {ctx} = this;
        console.log("res===",ctx.info);
        let {role_id} = ctx.info;
        let list = await this.service.res.list(role_id);
        ctx.body = {
            code:1,
            data:list
        }
    }
}

module.exports = ResController;
